<?php
/**
 * The following variables are available in this template:
 * - $this: the BootCrudCode object
 */
?>
<div class="view">

<?php
	echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$this->tableSchema->primaryKey}')); ?>:</b>\n";
	echo "\t<?php\n";
	echo "\t\$url = array('view', 'id'=>\$data->{$this->tableSchema->primaryKey});\n";
	echo "\techo CHtml::link(CHtml::encode(\$data->{$this->tableSchema->primaryKey}), \$url);\n";
	echo "\t?>\n\t<br />\n\n";
	$count = 0;
	foreach ($this->tableSchema->columns as $column) {
		if ($column->isPrimaryKey) {
			continue;
		}
		echo "\t<b><?php echo CHtml::encode(\$data->getAttributeLabel('{$column->name}')); ?>:</b>\n";
		echo "\t<?php echo CHtml::encode(\$data->{$column->name}); ?>\n\t<br />\n\n";
	}
?>
</div>